<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
 <head>
  <title>项目信息</title>
  <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  <script type="text/javascript">
  //编写自定义JS代码
  </script>
 </head>
 <body>
  <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="dictTeachItemController.do?doUpdate" tiptype="3" >
					<input id="id" name="id" type="hidden" value="${item.id }">
					<input id="createDate" name="createDate" type="hidden" value="${item.createDate }">
					<input id="deleted" name="deleted" type="hidden" value="${item.deleted }">
		<table style="" cellpadding="0" cellspacing="1" class="formtable">
				<tr>
						<td align="right">
						<label class="Validform_label">
							课程信息:
						</label>
					</td>
					<td class="value">
					     ${item.lessonInfo.lessonName}	 
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							项目编号:
						</label>
					</td>
					<td class="value">
					     	 <input id="itemNo" name="itemNo" type="text"  value="${item.itemNo }"
					     	 style="width: 150px" class="inputxt"  datatype="*"  maxlength="80" onkeypress="specialTextValidate()">
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">项目编号</label>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							项目名称:
						</label>
					</td>
					<td class="value">
					     	 <input id="itemName" datatype="*" name="itemName" value="${item.itemName }" type="text" style="width: 150px" class="inputxt" maxlength="80" >
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">项目名称</label>
						</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							实验目的:
						</label>
					</td>
					<td class="value">
			     	 <textarea rows="4" cols="22" datatype="*" id="itemDesc" name="itemDesc">${item.itemDesc }</textarea>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">实验目的</label>
				   </td>
				</tr>
					<%-- <tr>
					<td align="right">
						<label class="Validform_label">
							实验类型:
						</label>
					</td>
					<td class="value">
					        <t:CommonSelect url="dictTestTypeController.do?select" value="${item.testType.id }"  name="testTypeId" textField="testTypeName" idField="id"></t:CommonSelect>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">实验类型</label>
						</td>
				</tr>
				 <tr>
					<td align="right">
						<label class="Validform_label">
							实验类别:
						</label>
					</td>
					<td class="value">
					        <t:CommonSelect url="dictCategoryController.do?select" value="${item.testCategory.id }" name="testCategoryId" textField="categoryName" idField="id"></t:CommonSelect>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">实验类别</label>
						</td>
				</tr> --%>
				<tr>
					<td align="right">
						<label class="Validform_label">
							实验要求:
						</label>
					</td>
					<td class="value">
			     	 <textarea rows="4" cols="22" datatype="*" id="testRequire" name="testRequire">${item.testRequire}</textarea>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">实验要求</label>
				   </td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							计划学时:
						</label>
					</td>
					<td class="value">
					     	 <input id="planHour" datatype="*" name="planHour" value="${item.planHour}" type="text" style="width: 150px" class="inputxt" maxlength="80" >
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">计划学时</label>
						</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							计划组数:
						</label>
					</td>
					<td class="value">
					     	 <input id="groupCount" datatype="*" name="groupCount" value="${item.groupCount}" type="text" style="width: 150px" class="inputxt" maxlength="80" >
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">每组人数</label>
						</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							每组人数:
						</label>
					</td>
					<td class="value">
					     	 <input id="averageCount" datatype="*" name="averageCount" value="${item.averageCount}" type="text" style="width: 150px" class="inputxt" maxlength="80" >
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">每组人数</label>
						</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							适用专业:
						</label>
					</td>
					<td class="value">
					        <t:CommonSelect value="${item.applyMajorId }"  url="dictMajorController.do?selectObj"  name="applyMajorId"  textField="text" idField="id"></t:CommonSelect><br/>
					        <input type="hidden" name="applyMajor" id="applyMajor" value="${item.applyMajor }"> 
						</td>
				</tr>
					<tr>
					<td align="right">
						<label class="Validform_label">
							备注:
						</label>
					</td>
					<td class="value">
					        <textarea rows="6" style="width:100%" name="remark" maxlength="500" ></textarea>
					</td>
				</tr>
			</table>
		</t:formvalid>
 </body>
  <script src = "webpage/com/mengtian_tech/device_mgr/dict/dictGroup.js"></script>		
<script type="text/javascript">
$("#applyMajorId").change(function(){
	var txt = $("#applyMajorId").find("option:selected").text();
	$('#applyMajor').val(txt);
});
</script>